/**
 * @Author: yy
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-09-26 16:15:42
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';
//  查询线索信息
export const getApprovalList = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueaudit/queryAuditListForPC`, { params });
// 获取车型数据
// export const getAllModal = appId => axios.get(`${SERVER.BASEDATA}/vehicleProduct/open/getAllModel?appId=${appId}`);
export const getAllModal = params => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTree`, { params } );

export const getAllModal1 = params => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTree1`, { params } );
// 获取线索来源数据
export const getAllClueSource = params => axios.get(`${SERVER.CYXDMS_CLUE}/clue/clueSource`, { params } );
// 无效战败激活
export const clueActive = params => axios.post(`${SERVER.CYXDMS_CLUE}/clueaudit/clueActive`, params);
// 审批线索或战败
export const clueAudit = params => axios.post(`${SERVER.CYXDMS_CLUE}/clueaudit/clueAudit`, params);
// 获取顾问列表
export const getDirSalesName = params => axios.get(`${SERVER.SYSMANAGE}/basedata/employees/getDirSalesName`, { params });

// 获取线索来源树
export const queryClueSourceList = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueSource/queryTreeSource`,{ params } );
